package com.zte.market.service.otherService.otherImpl;

import com.zte.market.mapper.otherMapper.JobMapper;
import com.zte.market.pojo.otherPojo.Job;
import com.zte.market.service.otherService.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 职位
 * @Auther: 许月
 * @Date: 2022/10/06/19:32
 */
@Service
public class JobServiceImpl implements JobService {

    @Autowired
    private JobMapper jobMapper;


    /**
     * 通过部门id查询职位列表
     * @param deptId
     * @return
     */
    @Override
    public List<Job> getJobListByDeptId(Integer deptId) {
        List<Job> jobList = new ArrayList<>();
        jobList = jobMapper.queryJobListByDeptId(deptId);
        return jobList;
    }
}
